<?php
define('REWRITE', true);
define('HTMLEXT', '.html');
define('SITEDIR', dirname(__FILE__));
define('ROOTDIR', dirname(__FILE__) .'/webapp');
//define('DB_VURL', 'mysql://root:pwd@localhost:3306/dbname');
define('DB_VURL', 'sqlite://database/tinysupe2.1.db');

// config
$config = array();
$config['theme'] = array(
	'admin' => 'manage',
	'*' => 'default'
);
$config['rules'] = array(
	'(\w+)\/(\w+)\/(\d+)\/(\w+)\/(\d+)' => 'm=$1&c=$2&s=$3&a=$4&p=$5',
	'(\w+)\/(\w+)\/(\d+)\/(\w+)' => 'm=$1&c=$2&s=$3&a=$4',
	'(\w+)\/(\w+)\/(\d+)' => 'm=$1&c=$2&s=$3',
	'(\w+)\/(\w+)' => 'm=$1&c=$2',
	'(\w+)\/(\d+)' => 'm=$1&s=$2',
	'(\w+)' => 'm=$1'
);

// loader
require(dirname(__FILE__) .'/tinysupe/loader.php');
?>